package com.b2c.product.service;

import com.b2c.product.pojo.dto.BranchDto;
import com.b2c.product.pojo.entity.Branch;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import content.enumeration.BranchStatus;
import result.Result;

import javax.validation.Valid;

/**
* @author Administrator
* @description 针对表【mall_branch(品牌表)】的数据库操作Service
* @createDate 2024-03-20 17:28:30
*/
public interface BranchService extends IService<Branch> {

    Result getBranchByAdminId();

    Result insert(@Valid BranchDto branchDto);

    Result delete();

    Result getBranchByAdminId(Integer adminId);

    Result queryAllBranch(IPage<Branch> page);

    Result updateStatus(BranchStatus status, Integer adminId);
}
